package think.String;

import socket.Print;

/**
 * Created by zzy on 2018/1/18.
 */
public class regexTest {

    public static void main(String[] args) {
        Print.print(matches("This is correct."));
    }

    public static boolean matches(String text){
        return text.matches("\\p{javaUpperCase}.*\\.");
    }
}
